import Cookies from 'js-cookie'

const TokenKey = 'Reception-Token'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

const NameKey = 'Admin-Name'
export function getName() {
  return Cookies.get(String(NameKey))
}

export function setName(name) {
  return Cookies.set(NameKey, name)
}

export function removeName() {
  return Cookies.remove(NameKey)
}

const PhotoKey = 'Admin-Photo'
export function getPhoto() {
  return Cookies.get(PhotoKey)
}

export function setPhoto(photo) {
  return Cookies.set(PhotoKey, photo)
}

export function removePhoto() {
  return Cookies.remove(PhotoKey)
}
